<form method="post" class="tl_form" action="typolight/main.php?do=catalog_attribute">
<div class="tl_formbody">
<input type="hidden" value="tl_filters" name="FORM_SUBMIT">

<div class="tl_panel">

<div class="tl_submit_panel tl_subpanel">
<input type="image" name="filter_show" id="filter" src="system/themes/default/images/reload.gif" class="tl_img_submit" title="Apply" value="apply changes">
</div>

<div class="tl_limit tl_subpanel">
<strong>Show:</strong>
<?php if ($this->total_page): ?>
<select name="tl_limit" class="tl_select active">
	<option value="">Records</option>
	<?php if ($this->total > 30): ?>
	<?php for ($i=0; $i < $this->total_page; $i++): ?>
   <option<?php if ($this->limitValue == ($i*30) . "," . ($i+1)*30): ?> selected="selected"<?php endif; ?> value="<?php echo $i*30; ?>,<?php echo ($i+1)*30; ?>"><?php echo $i*30+1; ?> - <?php echo ($i+1)*30; ?></option>
	<?php endfor; ?>
	<option<?php if ($this->limitValue == $i*30 . "," . $this->residue): ?> selected="selected"<?php endif; ?> value="<?php echo $i*30; ?>,<?php echo $this->residue; ?>"><?php echo $i*30+1; ?> - <?php echo $i*30+$this->residue; ?></option>
  <?php else: ?>
  <option selected="selected" value="0,30">1 - 30</option>
  <?php endif; ?>
  <option<?php if ($this->limitValue == "all"): ?> selected="selected"<?php endif; ?> value="all">All</option>
</select> 
<?php else: ?>
<select name="tl_limit" class="tl_select active">
<option value="">Records</option>
<option selected="selected" value="0,30">1 - 30</option>
</select>
<?php endif; ?>
</div>

<div class="tl_search tl_subpanel">

<strong>Search:</strong>
<select name="tl_order_search" class="tl_select">
  <option value="skuid">Skuid</option>
</select>
<span>LIKE</span>
<input type="text" name="tl_search_value" class="tl_text" value="<?php echo $this->search_value; ?>">
</div>

<div class="clear"></div>

</div>

<div class="clear"></div>

</div>
</form>

<div id="tl_buttons">
<a onclick="Backend.getScrollOffset();" accesskey="n" title="Create a new product attribute." class="header_new" href="typolight/main.php?do=catalog_attribute&amp;act=create">New product attribute</a> &nbsp; :: &nbsp; <a onclick="Backend.getScrollOffset();" title="" class="header_css_export_inventory" href="typolight/main.php?do=catalog_attribute&amp;key=export_inventory">export_inventory</a>  &nbsp; :: &nbsp; <a onclick="Backend.getScrollOffset();" title="Edit multiple records at once" class="header_edit_all" href="typolight/main.php?do=catalog_attribute&amp;act=select">Edit multiple</a> 
</div>

<div class="tl_listing_container">
<?php if ($this->attributes): ?>
<table cellspacing="0" cellpadding="0" summary="Table lists records" class="tl_listing">
  <tbody>
  <?php $skuid = ""; ?>
  <?php foreach ($this->attributes as $arrAttribute): ?>
  <?php if ($skuid != $arrAttribute['skuid']): ?>
  <?php $skuid = $arrAttribute['skuid']; ?>
  <tr onmouseout="Theme.hoverRow(this, 0);" onmouseover="Theme.hoverRow(this, 1);">
    <td class="tl_folder_tlist" colspan="2" style=""><?php echo $arrAttribute['skuid']; ?></td>
  </tr>
  <?php endif; ?>
  <tr onmouseout="Theme.hoverRow(this, 0);" onmouseover="Theme.hoverRow(this, 1);">
    <td class="tl_file_list" style=""><?php echo $arrAttribute['title']; ?>:<?php echo $arrAttribute['size']; ?>:<?php echo $arrAttribute['catalog_stock']; ?></td>
    <td class="tl_file_list tl_right_nowrap" style="">
		<a title="Edit product attribute ID <?php echo $arrAttribute['attr_id']; ?>" href="typolight/main.php?do=catalog_attribute&amp;act=edit&amp;id=<?php echo $arrAttribute['attr_id']; ?>">
			<img width="12" height="16" alt="Edit product attribute" src="system/themes/default/images/edit.gif">
		</a> 
		<a onclick="if (!confirm('Do you really want to delete entry ID <?php echo $arrAttribute['attr_id']; ?>?')) return false; Backend.getScrollOffset();" title="Delete product attribute ID <?php echo $arrAttribute['attr_id']; ?>" href="typolight/main.php?do=catalog_attribute&amp;act=delete&amp;id=<?php echo $arrAttribute['attr_id']; ?>">
			<img width="14" height="16" alt="Delete product attribute" src="system/themes/default/images/delete.gif">
		</a> 
		<a title="Show the details of product attribute." href="typolight/main.php?do=catalog_attribute&amp;act=show&amp;id=<?php echo $arrAttribute['attr_id']; ?>">
			<img width="16" height="16" alt="Product attribute detail" src="system/themes/default/images/show.gif">
		</a> 
	</td>
  </tr>
  <?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</div>